package com.jgp.component;

import com.jgp.sys.service.MenuService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/6
 */
@Log4j2
@Component
public class SysInitialization implements CommandLineRunner {
    
    
    public SysInitialization() {
        log.warn("SysInitialization 创建");
    }
    
    @Lazy
	@Autowired
	private MenuService menuService;
	
	@Override
	public void run(String... strings) {
		log.warn("SysInitialization 运行");
		menuService.dealPlatformMenus();
	}
}
